package com.yykj.hospital.server.model.repository;

import com.yykj.hospital.server.model.entity.HospitalMenu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalMenuRepository extends JpaRepository<HospitalMenu,Integer> {

    List<HospitalMenu> findAllByHospitalIdAndMenuNameLikeOrMenuCodeLike(Integer hospitalId,String name,String code);

    List<HospitalMenu> findAllByIdIn(List<Integer> menuIds);

    List<HospitalMenu> findAllByHospitalId(Integer hospitalId);

}
